<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript" src="http://xfiles.cdnmyspace.cn/js/mootools-1.2.1-core-yc.js"></script>

<title>hiseg</title>
<body>
<style type="text/css">
	.hiin, .hiout{width: 550px; float:left}
	.hiout{margin-top:1px;border:1px solid #CCC;min-height:560px;-height:560px;font-size:20px;line-height:28px}
	.cost{color: #0AE;}
	.sp{color: #0AE;}
</style>
	<div class="hiin">
		<!--form name="search" action="http://192.168.139.133:10027" method="post"-->
			<textarea id="text" name="text" rows="30" cols="60"></textarea>
  		<input type="submit" value="do" onclick="javascript:do_seg()">
  	<!--/form-->
  </div>
  <div class="hiout" id="outd">
  	<!--textarea id="out" name="out" rows="30" cols="60" readonly="true"></textarea-->
  </div>
</body>
</html>

<script type='text/javascript'>

function do_seg()
{
	var host = window.location.host;
	var param = "mode=html&text=" + $('text').value;
 	var request = new Request.HTML({
 	url: 'http://' + host,
 	method: 'post',
 	data: param, 
// 	update: $('outd')
	onComplete: function(tree, el, ht, js){ $('outd').innerHTML = lf2br(ht); }
 }).send();
}

function lf2br(txt)
{
	return txt.replace(/\n/g,"<br/>");
}
 
</script>
